<template>
  <div id="app">
    <input type="text" v-model="msg" />
    {{ msg }}
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      msg: "hello",
    };
  },
  methods: {
    deleteItem(index) {
      console.log("删除的索引" + index);
      this.list.splice(index, 1);
    },
  },
};
</script>

<style></style>
